type parentheses
authorJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 4 Jan 2019 09:17:43 +0000 (10:17 +0100)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 4 Jan 2019 09:17:43 +0000 (10:17 +0100)
grammar/grammar.py
include/siri/grammar/grammar.h
src/siri/db/listener.c
src/siri/grammar/grammar.c

index f06e6e9312692dd0e73282004a0b55b68ce6c8a0..47152d6c9a33061a2814a60acc7cad6b33770940 100644 (file)
@@ -414,7 +414,7 @@ class SiriGrammar(Grammar):
         k_symmetric_difference,
         most_greedy=False)
 
-    series_parenthesis = Sequence('(', THIS, ')')
+    series_parentheses = Sequence('(', THIS, ')')
 
     series_all = Choice(Token('*'), k_all, most_greedy=False)
     series_name = Repeat(string, 1, 1)
@@ -429,7 +429,7 @@ class SiriGrammar(Grammar):
             group_match,
             series_re,
             most_greedy=False),
-        series_parenthesis,
+        series_parentheses,
         Sequence(THIS, series_setopr, THIS),
     )
 
index bf0aa4f1e4c61811072ad2e90eae62f24bf8f620..b4d098b6bd7e1ccb782bfc8816cabd6b53fd197e 100644 (file)
@@ -275,7 +275,7 @@ enum cleri_grammar_ids {
     CLERI_GID_SERIES_COLUMNS,
     CLERI_GID_SERIES_MATCH,
     CLERI_GID_SERIES_NAME,
-    CLERI_GID_SERIES_PARENTHESIS,
+    CLERI_GID_SERIES_PARENTHESES,
     CLERI_GID_SERIES_RE,
     CLERI_GID_SERIES_SETOPR,
     CLERI_GID_SERVER_COLUMNS,
index b74c9f548f35f0d902134c935f26108441487eb8..a5be32a88a65cff83d9357bc924b3f0f45194a54 100644 (file)
@@ -202,7 +202,7 @@ static void enter_set_password(uv_async_t * handle);
 static void enter_series_all(uv_async_t * handle);
 static void enter_series_name(uv_async_t * handle);
 static void enter_series_match(uv_async_t * handle);
-static void enter_series_parenthesis(uv_async_t * handle);
+static void enter_series_parentheses(uv_async_t * handle);
 static void enter_series_re(uv_async_t * handle);
 static void enter_series_setopr(uv_async_t * handle);
 static void enter_timeit_stmt(uv_async_t * handle);
@@ -244,7 +244,7 @@ static void exit_revoke_user(uv_async_t * handle);
 static void exit_select_aggregate(uv_async_t * handle);
 static void exit_select_stmt(uv_async_t * handle);
 static void exit_series_match(uv_async_t * handle);
-static void exit_series_parenthesis(uv_async_t * handle);
+static void exit_series_parentheses(uv_async_t * handle);
 static void exit_set_address(uv_async_t * handle);
 static void exit_set_backup_mode(uv_async_t * handle);
 static void exit_set_drop_threshold(uv_async_t * handle);
@@ -431,7 +431,7 @@ void siridb_init_listener(void)
     siridb_listen_enter[CLERI_GID_SERIES_ALL] = enter_series_all;
     siridb_listen_enter[CLERI_GID_SERIES_NAME] = enter_series_name;
     siridb_listen_enter[CLERI_GID_SERIES_MATCH] = enter_series_match;
-    siridb_listen_enter[CLERI_GID_SERIES_PARENTHESIS] = enter_series_parenthesis;
+    siridb_listen_enter[CLERI_GID_SERIES_PARENTHESES] = enter_series_parentheses;
     siridb_listen_enter[CLERI_GID_SERIES_RE] = enter_series_re;
     siridb_listen_enter[CLERI_GID_SERIES_SETOPR] = enter_series_setopr;
     siridb_listen_enter[CLERI_GID_SHARD_COLUMNS] = enter_xxx_columns;
@@ -479,7 +479,7 @@ void siridb_init_listener(void)
     siridb_listen_exit[CLERI_GID_SELECT_AGGREGATE] = exit_select_aggregate;
     siridb_listen_exit[CLERI_GID_SELECT_STMT] = exit_select_stmt;
     siridb_listen_exit[CLERI_GID_SERIES_MATCH] = exit_series_match;
-    siridb_listen_exit[CLERI_GID_SERIES_PARENTHESIS] = exit_series_parenthesis;
+    siridb_listen_exit[CLERI_GID_SERIES_PARENTHESES] = exit_series_parentheses;
     siridb_listen_exit[CLERI_GID_SET_ADDRESS] = exit_set_address;
     siridb_listen_exit[CLERI_GID_SET_BACKUP_MODE] = exit_set_backup_mode;
     siridb_listen_exit[CLERI_GID_SET_DROP_THRESHOLD] = exit_set_drop_threshold;
@@ -1318,7 +1318,7 @@ static void enter_series_match(uv_async_t * handle)
     SIRIPARSER_NEXT_NODE
 }
 
-static void enter_series_parenthesis(uv_async_t * handle)
+static void enter_series_parentheses(uv_async_t * handle)
 {
     siridb_query_t * query = handle->data;
     query_wrapper_t * q_wrapper = query->data;
@@ -3336,7 +3336,7 @@ static void exit_series_match(uv_async_t * handle)
     SIRIPARSER_ASYNC_NEXT_NODE
 }
 
-static void exit_series_parenthesis(uv_async_t * handle)
+static void exit_series_parentheses(uv_async_t * handle)
 {
     siridb_query_t * query = handle->data;
     query_wrapper_t * q_wrapper = query->data;
index 27de5ce9870c04f9696136e9a759e0a293495d0b..305d4c6d5803c68bfb377d1261193b1f5c0ec850 100644 (file)
@@ -754,8 +754,8 @@ cleri_grammar_t * compile_siri_grammar_grammar(void)
         k_intersection,
         k_symmetric_difference
     );
-    cleri_t * series_parenthesis = cleri_sequence(
-        CLERI_GID_SERIES_PARENTHESIS,
+    cleri_t * series_parentheses = cleri_sequence(
+        CLERI_GID_SERIES_PARENTHESES,
         3,
         cleri_token(CLERI_NONE, "("),
         CLERI_THIS,
@@ -791,7 +791,7 @@ cleri_grammar_t * compile_siri_grammar_grammar(void)
             group_match,
             series_re
         ),
-        series_parenthesis,
+        series_parentheses,
         cleri_sequence(
             CLERI_NONE,
             3,